package com.cql.sys.service.impl;

import com.cql.pojo.Detials;
import com.cql.pojo.Dict;
import com.cql.sys.mapper.DictDetailMapper;
import com.cql.sys.service.DictDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description TODO
 * @Date 2025/6/18 11:21
 * @Created by 12336
 */

@Service
public class DictDetailServiceImpl implements DictDetailService {

    @Autowired
    private DictDetailMapper dictDetailMapper;

    /**
     * 添加字典详细
     * @param dictDetail
     * @return
     */
    @Override
    public int addDictDetail(Detials dictDetail) {
        return dictDetailMapper.addDictDetail(dictDetail);
    }

    @Override
    public List<Detials> findAllDetails(Dict dict) throws Exception {
        return dictDetailMapper.findDetails(dict);
    }


}
